//
//  AppDelegate.swift
//  weibo
//
//  Created by 夜神月 on 16/4/7.
//  Copyright © 2016年 yr. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        // Override point for customization after application launch.
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        window?.backgroundColor = UIColor.whiteColor()
        window?.makeKeyAndVisible()
        
        // 设置主题色
        setThemeColor()
        
        // 设置根视图控制器
        window?.rootViewController = MainViewController()
        
        return true
    }
    
    private func setThemeColor() {
        UINavigationBar.appearance().tintColor = themeColor
        UITabBar.appearance().tintColor = themeColor
        
    }

}

